<template>
        <HelloWorld msg="Hello World" @show="showmsg"/>
</template>
<script setup>
// 1.直接导入组件
import HelloWorld from 'comps/HelloWorld.vue'

const showmsg = (val) => {
    console.log(val)
}

</script>
